﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using CNRegex.Web.Models;
using CNRegex.Web.Base;
using CNRegex.Enum;

namespace CNRegex.Web.Controllers
{
	public class AccountHomeController : BaseController
	{
		//
		// GET: /AccountHome/

		/// <summary>
		/// 
		/// </summary>
		/// <param name="name">userName</param>
		/// <param name="p">pageIndex</param>
		/// <param name="c">categoryName</param>
		/// <returns></returns>
		public ActionResult Index(string name,int? p,string c,int? t)
		{
			return View(new ModelAccountHome(name) { ExPageIndex = p, SelectCategoryName = c, ExpressionType = t == null ? EnumExpressionType.myExpression : (EnumExpressionType)t.Value });
		}
	}
}
